from rest_framework.viewsets import ReadOnlyModelViewSet
from apps.goods.models import Category
from apps.goods.serializers import CategorySerializer


class CategoryModelViewSet(ReadOnlyModelViewSet):
    queryset = Category.objects.all()
    serializer_class = CategorySerializer
